package com.example.comic.utils

import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import java.lang.reflect.Type

inline fun <reified T> getList(jsonStr: String): T {
    return Gson().fromJson<T>(jsonStr, T::class.java)
}
//var bannerData:List<BannerData> = gson.fromJson<Array<BannerData>>(data.getString("data"), Array<BannerData>::class.java).toMutableList()
